package au.com.handsunited.web.command.project;

import java.util.HashMap;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import au.com.handsunited.model.BaseEntity;
import au.com.handsunited.model.Project;
import au.com.handsunited.model.Project;
import au.com.handsunited.web.command.entity.AbstractBaseEntityCommand;


/**
 * @author arunda
 *
 */
public class ProjectCommand extends AbstractBaseEntityCommand {

	private String ownerId;
	private Map<String, BaseEntity> ownersMap;

	private static Logger logger = LoggerFactory.getLogger(ProjectCommand.class);


	/**
	 *
	 */
	public ProjectCommand() {
		super();
		entity = new Project();
		ownersMap = new HashMap<String, BaseEntity>();
	}

	/**
	 *
	 */
	public ProjectCommand(Project project) {
		this();
		entity = project;
		ownerId = project.getOwner().getId().toString();
	}


	/**
	 * @return the project
	 */
	public Project getProject() {
		return (Project)entity;
	}

	/**
	 * @return the ownerId
	 */
	public String getOwnerId() {
		return ownerId;
	}

	/**
	 * @param ownerId the ownerId to set
	 */
	public void setOwnerId(String ownerId) {
		this.ownerId = ownerId;
	}

	/**
	 * @return the ownersMap
	 */
	public Map<String, BaseEntity> getOwnersMap() {
		return ownersMap;
	}

	/**
	 * @param ownersMap the ownersMap to set
	 */
	public void setOwnersMap(Map<String, BaseEntity> ownersMap) {
		this.ownersMap = ownersMap;
	}

}

